package com.aha.dataanalyzeandview.service.impl;

import com.aha.dataanalyzeandview.entity.qdii.QDIIFoundationPremiumEstimationEntity;
import com.aha.dataanalyzeandview.mapper.QdiiFoundationMapper;
import com.aha.dataanalyzeandview.service.IQdiiFoundationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/******************************
 * Project:           data-analyze-and-view
 * FileName:          QdiiFoundationServiceImpl.java
 * ClassName:         QdiiFoundationServiceImpl
 * Time:              2020/9/22 22:32
 * Version:           1.00
 * Author:            努力就是魅力
 * Description:       TODO
 ******************************/

@Service
@Slf4j
public class QdiiFoundationServiceImpl implements IQdiiFoundationService {

   @Autowired
   private QdiiFoundationMapper qdiiFoundationMapper;

    @Override
    public Integer batchAddQdiiFoundationData(List<QDIIFoundationPremiumEstimationEntity> qdiiList) {
        return qdiiFoundationMapper.batchAddQdiiFoundationData(qdiiList);
    }

    @Override
    public List<QDIIFoundationPremiumEstimationEntity> queryQdiiFoundationData() {
        return qdiiFoundationMapper.queryQdiiFoundationData();
    }


    @Override
    public QDIIFoundationPremiumEstimationEntity queryQdiiDataLastDate() {
        return qdiiFoundationMapper.queryQdiiDataLastDate();
    }
}
